<?php 
$templateURL = $this->basePath('public/template');
?>
     <?php
    $form = $this->ProductForm;
    $form->prepare();
    echo $this->form()->openTag($form);
    ?>
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title">Thêm sản phẩm</h4>
      </div>
      <div class="modal-body">
         <dl class="dl-horizontal">
               <dt>
			    <?php echo $this->formLabel($form->get('producttypes')); ?>
			  </dt>
			  <dd>
			  <?php echo $this->formElement($form->get('producttypes')); ?>
			  <span class="text-danger product-error"><?php echo $this->formElementErrors($form->get('producttypes'));?></span>
			  </dd>
         
			  <dt>
			    <?php echo $this->formLabel($form->get('namepro')); ?>
			  </dt>
			  <dd>
			  <?php echo $this->formElement($form->get('namepro')); ?>
			  <span class="text-danger product-error"><?php echo $this->formElementErrors($form->get('namepro'));?></span>
			  </dd>
			  
			  <dt>
			    <?php echo $this->formLabel($form->get('contentpro')); ?> 
			  </dt>
			  <dd>
			  <?php echo $this->formElement($form->get('contentpro')); ?>
			  <span class="text-danger product-error"><?php echo $this->formElementErrors($form->get('contentpro'));?></span>
			  </dd>
			  
			  <dt>
			    <?php echo $this->formLabel($form->get('file_uploads')); ?> 
			  </dt>
			  <dd class="file_uploads">
			  <span class="arrfileupload"><?php echo $this->formElement($form->get('file_uploads')); ?>
			   <span class="remove_file"><i class="fa fa-minus-square"></i>
			  </span>
			  </span>
			  <span class="add_file"><i class="fa fa-plus-square"></i>
			  </span>
			  <span class="text-danger product-error"><?php echo $this->formElementErrors($form->get('file_uploads'));?></span>
			  </dd>
			  
			  <dt class="activep">
			    <?php echo $this->formLabel($form->get('activepro')); ?> 
			  </dt>
			  <dd class="activep1">
			  <?php echo $this->formElement($form->get('activepro')); ?>
			  </dd>
		  </dl>
      </div>
             
      <div class="modal-footer">
        
        <?php
        echo $this->formElement($form->get('submit'));
      ?>
      </div>
    </div>
    <?php
      echo $this->form()->closeTag($form);
     ?>     
               <script type="text/javascript">
               CKEDITOR.config.allowedContent = true;
                CKEDITOR.replace('contentpro', {
                    'extraPlugins': 'showblocks,div,doksoft_backup,doksoft_stat,iframe',
                    'filebrowserImageBrowseUrl': '<?= $templateURL.'/plugin/ckeditor/plugins/imgbrowse/imgbrowse.html'?>',
                    'filebrowserImageUploadUrl': '<?= $templateURL.'/plugin/ckeditor/plugins/imgupload.php'?>',
                  });
            </script>  